<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="http://www.w3cschool.cc/try/jeasyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="http://www.w3cschool.cc/try/jeasyui/themes/icon.css">
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="http://www.w3cschool.cc/try/jeasyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/datagrid-filter.js"></script>
	<style>
		.icon-filter{
			background:url('<%=path%>/images/filter.png') no-repeat center center;
		}
	</style>
	<script>
	var data = [
	        	{"productid":"FI-SW-01","listprice":36.50,"itemid":"EST-1"},
	        	{"productid":"K9-DL-01","listprice":18.50,"itemid":"EST-10"},
	        	{"productid":"RP-SN-01","listprice":38.50,"itemid":"EST-11"}, 	
	        ];
	
	$(function(){
		var dg = $('#tt').datagrid({
			filterBtnIconCls:'icon-filter'
		});
		dg.datagrid('enableFilter', [{
			field:'listprice',
			type:'numberbox',
			options:{precision:1},
			op:['equal','notequal','less','greater']
		}]);
	});
	</script>
</head>
<body>
		<table id="tt" data-options="
				singleSelect:true,
				data:data">
			<thead>
			<tr>
				<th data-options="field:'itemid',width:80">Item ID</th>
				<th data-options="field:'productid',width:100">Product</th>
				<th data-options="field:'listprice',width:80,align:'right'">List Price</th>				
			</tr>
		</thead>		
				
		</table>
</body>
</html>